package com.lgq.dict.controller;

import com.lgq.dict.serivce.DictSerivce;
import com.lww.springcloudapi.entity.TabCode;
import com.lww.springcloudapi.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 字典表Controller
 */
@RestController
@CrossOrigin
@RequestMapping("/tabcond/dict")
@Api(description = "字典表")
public class DictController {

    @Resource
    private DictSerivce dictSerivce;

    /*
    字典表父级菜单查询
     */

    @PostMapping("/dictList")
    @ApiOperation(value = "字典表查询")
    public Result dictList(String parent) {
        return dictSerivce.dictParent(parent);
    }


    @GetMapping(value = "formulaClothClassTree")
    @ApiOperation(value = "树", notes = "树", httpMethod = "GET")
    public Result formulaClothClassTree() {
        return dictSerivce.formulaClothClassTree();
    }


}
